from crawler import ShopifyCrawler
from handler import ShopifyPostProcessor
from config import Config

# crawler = ShopifyCrawler(-6181500499920615852)
# topics = crawler.run(start_page=77, max_pages=1000)  # 爬取前5页内容

# 初始化处理器
processor = ShopifyPostProcessor(Config.DB_PATH, Config.API_KEY, Config.MODEL)

# 处理所有未处理的帖子
processor.process_posts()

# 或者处理特定ID的帖子
# processor.process_single_post_by_id(123)